﻿<%@ Page Language="C#" MasterPageFile="~/Templates/Public.master" AutoEventWireup="true" CodeFile="Crack.aspx.cs" Inherits="Resources_Crack" Title="Untitled Page" %>
<%@ Register Assembly="Jalal.Library" Namespace="Jalal.Library.Web.Control" TagPrefix="ucc" %>
<%@ Import Namespace="BCGC.BLL.Helper" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftContent" Runat="Server">
    <div class="section-area">
        <table cellpadding="0" cellspacing="0">
            <tr>
                <td align="right" class="highlighted-text">
                    Type a title to search from the list: <asp:TextBox ID="tbxTitle" runat="server" Width="370px"></asp:TextBox>
                </td>
                <td align="right">
                    <asp:Button ID="btcSearch" OnClick="Search_Click" runat="server" CssClass="button" Text="Search" />
                </td>
            </tr>
        </table>
        <asp:Repeater ID="rptResources" runat="server">
            <HeaderTemplate>
                <div class="section-head">
                    <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                            <td class="sub-head-left">&nbsp;</td>
                            <td>Resources</td>
                            <td class="sub-head-right" align="right">&nbsp;</td>
                        </tr>
                    </table>
                </div>
            </HeaderTemplate>
            <ItemTemplate>
                <div class="section-item">
                    <table width="100%">
                        <tr>
                            <td>
                                <a class="biglink" href='<%= CustomSiteMap.GameCrackDetail %>?id=<%# Eval("CrackId") %>'><%# Eval("Title") %></a>
                            </td>
                            <td align="right">
                                <ucc:DateFormatLabel runat="server" Text='<%# Eval("CreateDateTime") %>'></ucc:DateFormatLabel>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Literal ID="Literal1" runat="server" Text='<%# Server.HtmlDecode((string)Eval("Description")) %>'></asp:Literal>
                            </td>
                        </tr>
                    </table>
                </div>
            </ItemTemplate>
            <SeparatorTemplate>
               <div class="section-seperator"></div>
            </SeparatorTemplate>
            <AlternatingItemTemplate>
                <div class="section-item">
                    <table width="100%">
                        <tr>
                            <td>
                                <a class="biglink" href='<%= CustomSiteMap.GameCrackDetail %>?id=<%# Eval("CrackId") %>'><%# Eval("Title") %></a>
                            </td>
                            <td align="right">
                                <ucc:DateFormatLabel runat="server" Text='<%# Eval("CreateDateTime") %>'></ucc:DateFormatLabel>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Literal ID="Literal1" runat="server" Text='<%# Server.HtmlDecode((string)Eval("Description")) %>'></asp:Literal>
                            </td>
                        </tr>
                    </table>
                </div>
            </AlternatingItemTemplate>
        </asp:Repeater>
    </div>
    <div class="pager-area">
        <asp:Repeater ID="rptPager" runat="server" OnItemDataBound="Pager_DataBound">
            <ItemTemplate>
                <asp:LinkButton ID="lkbPageIndex" runat="server" CssClass="page-index" Width="24px" Height="24px"
                    Text='<%# Container.DataItem.ToString() %>' CommandName="PagingCommand"
                    CommandArgument='<%# Container.DataItem %>'
                    OnCommand="Page_Change"></asp:LinkButton>
            </ItemTemplate>
        </asp:Repeater>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContent" Runat="Server">
</asp:Content>

